﻿namespace MoneyCounter.Helpers
{
    //public static class MCP_HTML_Helper
    //{
    //    /////// <summary>
    //    /////// Constructs HTML-markup for logo.
    //    /////// </summary>
    //    /////// <returns>HTML-markup.</returns>
    //    ////public static MvcHtmlString Logo()
    //    ////{
    //    ////    return MvcHtmlString.Create("<div id=\"mcp-logo\"><div id=\"mcp-short-name\">[MCP]</div><div id=\"mcp-full-name\">Money Counter Project</div><div id=\"mcp-slogan\">Save your money!</div></div>");
    //    ////}
        
    //    public static MvcHtmlString LoginOrLogoutLink(string className)
    //    {
    //        string action = Thread.CurrentPrincipal.Identity.IsAuthenticated
    //                            ? "Logout"
    //                            : "Login";
            
    //        MvcHtmlString result = MvcHtmlString.Create(
    //            string.Format("<a href='/Account/{0}' class='{1}'>{0}</a>",
    //                action,
    //                className));

    //        return result;
    //    }

    //    public static class RegularMessages
    //    {
    //        public static MvcHtmlString CurrentBalanceMessage()
    //        {
    //            return MvcHtmlString.Create(CurrentUserHelper);
    //        }
    //    }

    //    public static MvcHtmlString ToJson(this object obj)
    //    {
    //        JavaScriptSerializer serializer = new JavaScriptSerializer();
    //        return MvcHtmlString.Create(serializer.Serialize(obj));
    //    }
    //}
}